package com.itboye.eweilisten.util.dbutil;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by Mr.w on 2017/3/1.
 */

public class DBHelper extends SQLiteOpenHelper {
    private String name;
    private int version;
    private String sql;

    public DBHelper(Context context, String name, int version, String sql) {
        super(context, name, null, version);
        this.version = version;
        this.name = name;
        this.sql = sql;
    }

    @Override
    public void onCreate(SQLiteDatabase sqLiteDatabase) {
        sqLiteDatabase.execSQL(sql);
    }

    @Override
    public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {

    }
}
